<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${sysname}</title>
<%@ include file="/WEB-INF/jsp/include/css.jsp"%>
<%@ include file="/WEB-INF/jsp/include/js.jsp"%>
<%@ include file="/WEB-INF/jsp/include/datepicker.jsp"%>
<script type="text/javascript" src="${ctx}/js/sup/mobstockinedit.js">
	
</script>
<script type="text/javascript">
	$().ready(function() {
		$("input[name=productionDate]").datepicker();
	});
</script>
</head>

<body>
	<my:navigation text="供应商业务 >>　药品入库  >> 新增入库" percent="90" />
	<form action="${ctx}/drugInManage_edit.do" method="post">
	    <input type="hidden" name="invoiceid" value="${drugIn.invoiceid}"/>
		<table class="inputTable" width="90%" align="center"
			style="margin-top:10px">
			<tr>
				<th colspan="4">修改药品入库信息</th>
				<th>数量</th>
				<th><input type="text" name="amount" value="${drugIn.amount}" class="text"
					style="width:100;border:none;background:none;font-weight:bold"
					maxlength="6" readonly /></th>
				<th>总价</th>
				<th><input name="totalmoney" readonly class="text"
					style="width:80px;border:none;background:none;font-weight:bold"
					value="${drugIn.totalmoney}" />
			</tr>
			<tr>
				<th>供应商</th>
				<td><select name="supplierid" class="text" style="width:100">
					    <option value="">--不限--</option>
						<c:forEach items="${supLists}" var="sup">
							<option value="${sup.supplierId}" <c:if test="${drugIn.supplierid eq sup.supplierId}">selected</c:if> >${sup.supplierName}</option>
						</c:forEach>
				</select></td>
				<th>药品名称</th>
				<td><input name="drugName"  class="text"
					style="width:100" maxlength="8" value="${drugIn.drugName}"/></td>
			</tr>

			<tr>
				<th>进价</th>
				<td><input type="text" name="buyprice" value="${drugIn.buyprice}" class="text"
					style="width:100" maxlength="8" /></td>
				<th>生产日期</th>
				<td><input class="text" style="width:80px"
					name="productionDate" value="${my:fmtDate(drugIn.productionDate)}"
					readonly /></td>
				</td>
				<th>保质期</th>
				<td><input class="text" style="width:80px" name="releaseDate"
					value="${drugIn.releaseDate}" /></td>

			</tr>
			<tr>
				<th>备注</th>
				<td colspan="7"><textarea rows="2" cols="82" name="remark" value="">${drugIn.remark}</textarea>
				</td>
			</tr>
		</table>
		<table id="tblSns" class="table" width="90%" align="center"
			style="margin-top:10px">
			<tr>
				<th align="center" width="50">序号</th>
				<th width="250">药品编号</th>
				<th width="250">序号</th>
				<th>操作</th>
				<th>状态</th>
			</tr>
		</table>
		<table align="center" width="90%" class="inputTable"
			style="border-top:none">
			<tr>
				<th width="245"></th>
				<th width="50">药品编号</th>
				<th width="220"><input type="text" name="sn1" value=""
					class="text" maxlength="30" /></th>
				<th width="50">序号</th>
				<th><input type="text" name="sn2" value="" class="text"
					maxlength="30" /></th>
				<th align="center"><input type="button" value="添加"
					class="btn ok" onclick="addSn();"></th>
			</tr>
		</table>
		<br />
		<div align="center">
			<input type="button" name="but1" value="保存" class="btn ok"
				onclick="submitFrm(this.form)" /> &nbsp;&nbsp;&nbsp;&nbsp; <input
				type="button" name="but2" value="返回" class="btn cancel"
				onclick="location='${ctx}/drugInManage_list.do'" />
		</div>
	</form>

</body>
</html>
